<?php

class Store_model extends CI_Model {

	public $name;
	public $website;
	public $description;

	public function listAll()	{
		$query = $this->db->get('stores');
		return $query->result();
	}
	
	public function getById($id){
		$this->db->where('id', $id);
		$query = $this->db->get('stores', 1);
		return $query->result();
	}
}

?>